<?php

/**
 * Zend_Controller_action, Kleingedruckte-Seite, Kontaktseite, FAQ-Seite
 * @author  Christian Greweling, Sascha Witte
 *
 */
class StaticController extends Zend_Controller_Action {

    public function init() {
        $this->_statusMessenger = $this->_helper->flashMessenger;
        $this->_errorMessenger = new Zend_Controller_Action_Helper_FlashMessenger();
        $this->_errorMessenger->setNamespace('error');
        $this->view->statusMessages = $this->_statusMessenger->getMessages();
        $this->view->errorMessages = $this->_errorMessenger->getMessages();
    }

    public function indexAction() {
        
    }

    /**
     * Überprüft Eingabedaten und sendet die E-Mail 
     *
     */
    public function contactAction() {
       
    }

    /**
     * Das kleingedruckte 
     *
     */
    public function aboutAction() {
        $this->view->headTitle($this->view->translate('About'));
        $this->view->documentClasses = array('about');
    }


    /**
     * zeigt FAQ 
     *
     */
    public function faqAction() {
        $this->view->headTitle('FAQ');
        $this->view->documentClasses = array('faq');
    }

    public function betaAction() {
        $this->view->headTitle('BETA');
        $this->view->documentClasses = array('beta');
        $this->view->headScript()->appendScript('
                $(document).ready(function() {
                    $(".sparta").delay(600).fadeOut(function(){
                        $(".sparta").replaceWith("BETA").fadeIn();
                    });
                });
        ');
    }

}

